<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .photo-grid-container {
            column-count: 5;
            column-width: 200px;
            column-gap: 10px;
            width: 100%;
            /*   Remove max-width for full-screen grid */
            max-width: 1600px;
            margin: auto;
        }

        .photo-grid-item {
            margin: 0 auto 5px;
            width: 100%;
        }
    </style>
</head>

<body>
    <main>
        <section class="photo-grid-container">
            <!-- <img class="photo-grid-item" src="https://source.unsplash.com/random/300x300"
                alt="A randomly generated photo from Unsplash"> -->
        </section>
    </main>

    <script>
        const box = document.querySelector('.photo-grid-container')
        box.innerHTML = new Array(20).fill('').map((_, index) => {
            return `<img class="photo-grid-item" src="https://source.unsplash.com/random/300x${300 + Math.floor(Math.random() * 100)}?${index}" alt="">`
        }).join('')
    </script>
</body>

</html>